Chooses the menu item named, just as if the user had selected it from a menu. You do not have to specify the name of the menu, only the name of the item.
You can write your own message handler to intercept the doMenu (or keyboard equivalent) message. See this card's script.